<div>
    <form name="addCompany">
        <div class="row">
            <div class="col-md-6">
                <div class="form-group">
                    <label class="col-md-2 control-label" for="companyName">公司名称</label>
                    <div class="col-md-10">
                        <input class="form-control" type="text" id="companyName" placeholder="必填" ng-model="addCompanyInfo.companyBaseInfo.name">
                    </div>
                </div>
            </div>
            <div class="col-md-6">
                <div class="form-group">
                    <label class="col-md-2 control-label" for="companyAlias">公司别名</label>
                    <div class="col-md-10">
                        <input class="col-sm-10 form-control" type="text" id="companyAlias" placeholder="" ng-model="addCompanyInfo.companyBaseInfo.alias">
                    </div>
                </div>
            </div>
        </div>
        <div style="margin-top: 15px" class="row">
            <div class="col-md-6">
                <div class="form-group">
                    <label class="col-md-2" for="companyEnglishName">英文名称</label>
                    <div class="col-md-10">
                        <input class="form-control" type="text" id="companyEnglishName" placeholder="" ng-model="addCompanyInfo.companyBaseInfo.englishName">
                    </div>
                </div>
            </div>
            <div class="col-md-6">
                <div class="form-group">
                    <label class="col-md-2" for="companyFoundTime">成立年份</label>
                    <div class="col-md-10">
                        <input class="form-control" type="text" id="companyFoundTime" placeholder="" ng-model="addCompanyInfo.companyBaseInfo.foundDate">
                    </div>
                 </div>
            </div>
        </div>
        <div style="margin-top: 15px" class="form-group" >
            <div class="row" style="padding-left:15px;padding-right:15px;" ng-if="addCompanyInfo.parentCompanyId!=undefined&&addCompanyInfo.parentCompanyId!=''">
                <label class="col-md-2" for="fatherCompany">所属集团公司</label>
                <div class="col-md-4">
                    <span style="color: red" id="fatherCompany">{{getCompanyNameById()}}</span>
                </div>
                <div class="col-md-6">
                    您正在创建的是一个分公司，点击<a ng-click="changeToTop()">此处</a>创建主公司
                </div>
            </div>
            <div class="row" style="padding-left:15px;padding-right:15px;" ng-if="addCompanyInfo.parentCompanyId==undefined||addCompanyInfo.parentCompanyId==''">
                <label class="col-md-2" for="fatherCompany"></label>
                <div class="col-md-4">
                    <span style="color: red" >您正在创建的是一个总公司</span>
                </div>
                <div class="col-md-6">
                    <span >创建子公司需要返回公司列表，或者在公司详情页面创建公司</span>
                </div>
            </div>
        </div>
        <div style="margin-top: 15px" class="row" >
            <label class="col-md-1" style="margin-left: 15px;margin-right: 15px" for="companyAddress">公司地址</label>
            <div class="col-md-4">
                <div id="companyAddress" city-select  province="addCompanyInfo.addresss[0].province" city="addCompanyInfo.addresss[0].city" district="addCompanyInfo.addresss[0].district"></div>
            </div>
            <div class="col-md-1" style="padding-left: 0px;padding-right: 0px;margin-left: -45px;margin-right: 0">
                <input type="text" class="form-control" mg-model="addCompanyInfo.addresss[0].area" placeholder="区域">
            </div>
            <div class="col-md-1" style="padding-left: 0px;padding-right: 0px">
                <input type="text" class="form-control" mg-model="addCompanyInfo.addresss[0].street" placeholder="街道">
            </div>
            <div class="col-md-4" style="padding-left: 0px;padding-right: 0px">
                <input type="text" class="form-control" mg-model="addCompanyInfo.addresss[0].detailAddress" placeholder="详细地址">
            </div>
            <div class="col-md-1" style="padding-left: 0px;padding-right: 15px">
                <input type="text" class="form-control" mg-model="addCompanyInfo.addresss[0].postcode" placeholder="邮编">
            </div>
        </div>
        <div style="margin-top: 15px" class="row">
            <div class="col-md-6">
                <div class="form-group">
                    <label class="col-md-2" for="type">公司类型</label>
                    <div class="col-md-10">
                        <input class="form-control" type="text" id="type" placeholder="" ng-model="addCompanyInfo.companyBaseInfo.type">
                    </div>
                </div>
            </div>
            <div class="col-md-6">
                <div class="form-group">
                    <label class="col-md-2" for="businessConnectionWithMe">商业联系</label>
                    <div class="col-md-10">
                        <input class="form-control" type="text" id="businessConnectionWithMe" placeholder="（与个人的）商业联系" ng-model="addCompanyInfo.businessConnectionWithMe">
                    </div>
                </div>
            </div>
        </div>
        <div style="margin-top: 15px" class="row">
            <div class="col-md-6">
                <div class="form-group">
                    <label class="col-md-2" for="friendshipWithMe">友好程度</label>
                    <div class="col-md-10">
                        <input class="form-control" type="text" id="friendshipWithMe" placeholder="(与个人的)友好程度" ng-model="addCompanyInfo.friendshipWithMe">
                    </div>
                </div>
            </div>
            <div class="col-md-6">
                <div class="form-group">
                    <label class="col-md-2" for="importanceToMe">重要程度</label>
                    <div class="col-md-10">
                        <input class="form-control" type="text" id="importanceToMe" placeholder="(对个人的)重要程度" ng-model="addCompanyInfo.importanceToMe">
                    </div>
                </div>
            </div>
        </div>
        <div style="margin-top: 15px" class="row">
            <div class="col-md-6">
                <div class="form-group">
                    <label class="col-md-2" for="unit">货币单位</label>
                    <div class="col-md-10">
                        <input class="form-control" type="text" id="unit" placeholder="货币单位" ng-model="addCompanyInfo.companyBaseInfo.unit">
                    </div>
                </div>
            </div>
            <div class="col-md-6">
                <div class="form-group">
                    <label class="col-md-2" for="registerCapital">注册资金</label>
                    <div class="col-md-10">
                        <input class="form-control" type="text" id="registerCapital" placeholder="注册资金" ng-model="addCompanyInfo.companyBaseInfo.registerCapital">
                    </div>
                </div>
            </div>
        </div>
        <div style="margin-top: 15px" class="form-group">
            <div class="row" style="padding-left:15px;padding-right:15px;">
                <label class="col-md-1"  for="webSite">公司主页</label>
                <div class="col-md-11">
                    <input class="form-control" type="text" id="webSite" placeholder="" ng-model="addCompanyInfo.companyBaseInfo.webSite">
                </div>
            </div>
        </div>
        <div style="margin-top: 15px" class="form-group">
            <div class="row" style="padding-left:15px;padding-right:15px;">
                <label class="col-md-1" for="overview">公司概述</label>
                <div class="col-md-11">
                    <input class="form-control" type="text" id="overview" placeholder="" ng-model="addCompanyInfo.companyBaseInfo.overview">
                </div>
            </div>
        </div>
        <div style="margin-top: 15px" class="form-group">
            <div class="row" style="padding-left:15px;padding-right:15px;">
                <div class="col-md-4"></div>
                <div class="col-md-1" >
                    <input type="button" class="btn btn-warning" value="重置" ng-click="clear(1)">
                </div>
                <div class="col-md-1">
                    <input type="button" class="btn btn-success" value="提交" ng-disabled="addCompanyInfo.companyBaseInfo.name==''" ng-click="saveCompanyInfo()">
                </div>
                <div class="col-md-4"></div>
            </div>
        </div>
    </form>
</div>